﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Icst.Leaflike.Data;

namespace Icst.Leaflike.Web
{
    public partial class index : pagebase
    {
        public string forum_home { get { return AppConfig.forum_home; } }
        protected sys_book[] _books = null;
        protected Icst.Leaflike.Data.tree _todaytree = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string version = this.Para("version", "Public");
                Session.setVersion((Version)Enum.Parse(typeof(Version), version, true),100,AppConfig.cookiedomain);

                _books = Book.Instance.Top(10);
                _todaytree = Tree.Instance.TodayTree();
            }
        }
    }
}
